<template>
    <el-form :model="propJson" label-width="auto" style="width: 100%">
        <el-divider>组件名称</el-divider>

        <CommonThirdServiceValue :actionInfo="propJson.componentNameParam ? propJson.componentNameParam : {}" :commonParam="commonParam" />


        <el-form-item label="组件大小">
            <el-input v-model="propJson.fontSize" style="width: 100%" placeholder="组件大小" />
        </el-form-item>

        <el-form-item label="是否居中">
            <el-radio-group v-model="propJson.isAlign">
                <el-radio :label="true">是</el-radio>
                <el-radio :label="false">否</el-radio>
            </el-radio-group>
        </el-form-item>
    </el-form>
</template>

<script name="VueComponentDrawer" setup lang="ts">
import CommonThirdServiceValue from "@/components/lowcode/service/CommonThirdServiceValue.vue"
import {computed, defineProps} from "vue";
import {useLowCodeStore} from "@/stores/lowcode/lowcode";

let props = defineProps(['commonParam']);

let commonParam = computed(() => {return props['commonParam']})

let propJson = computed(() => {return useLowCodeStore().lowCodeDrawerJsonInfo});

</script>

<style scoped lang="less">

</style>